package com.vf.admin.platform.entity;


import com.vf.admin.common.db.annotation.Column;
import com.vf.admin.common.db.annotation.NoColumn;
import com.vf.admin.common.db.annotation.Table;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * 平台基础用户
 */
@Table(name="bt_user")
public class User implements Serializable {
    private static final long serialVersionUID = 1L;
    @Column(length = 10,name ="id",index = true)
    private Integer id; // 编号
    private String loginname; // 登录名称
    private String password; // 登录密码
    private String name; // 用户真实名称
    private Integer sorts; // 排序值
    private Integer states; // 状态 1、启用  2、不启用
    private String comments; // 备注信息
    private Integer isroot;//是否超级管理员  1：是
    private Integer orgid;//部门id
    private String code;//邀请码

    //关联字段
    @NoColumn
    private String orgname;//部门名称
    @NoColumn
    private String rolename;//角色名称
    @NoColumn
    private List<String> urlList;//当前平台登录用户拥有的所有接口url地址
    @NoColumn
    private Map<String,Integer> userCacheMap;//当前平台登录用户拥有权限的接口
    @NoColumn
    private String roleArray;//当前平台登录用户拥有的所有接口url地址

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSorts() {
        return sorts;
    }

    public void setSorts(Integer sorts) {
        this.sorts = sorts;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public Integer getIsroot() {
        return isroot;
    }

    public void setIsroot(Integer isroot) {
        this.isroot = isroot;
    }

    public Integer getOrgid() {
        return orgid;
    }

    public void setOrgid(Integer orgid) {
        this.orgid = orgid;
    }

    public String getOrgname() {
        return orgname;
    }

    public void setOrgname(String orgname) {
        this.orgname = orgname;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public Integer getStates() {
        return states;
    }

    public void setStates(Integer states) {
        this.states = states;
    }

    public List<String> getUrlList() {
        return urlList;
    }

    public void setUrlList(List<String> urlList) {
        this.urlList = urlList;
    }

    public Map<String, Integer> getUserCacheMap() {
        return userCacheMap;
    }

    public void setUserCacheMap(Map<String, Integer> userCacheMap) {
        this.userCacheMap = userCacheMap;
    }

    public String getRoleArray() {
        return roleArray;
    }

    public void setRoleArray(String roleArray) {
        this.roleArray = roleArray;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
